package ml.coursedesign.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/***
 * @author wuxue
 *
 */
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Data
@TableName("subject")
public class Subject implements Serializable {
    //课题id
    @TableId
    private String subjectId;
    //课程名称
    @TableField("subject_name")
    private String subjectName;
    //预选人数
    private int primaryNum;
    @TableLogic
    private Integer deleted;
    public Subject(){
    }
    public Subject(String subjectId, String subjectName,  int primaryNum) {
      this.subjectId = subjectId;
      this.subjectName= subjectName;
      this.primaryNum = primaryNum;

    }
}
